<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Dashboard.Master" Inherits="System.Web.Mvc.ViewPage<ComLib.Web.Lib.Models.EntityListViewModel>" %>
<%@ Import Namespace="ComLib.Authentication" %>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <%
       // 1. Sets the heading of the Form to "Create new <modelname>". 
       if(Model.Config.Get<bool>(Model.Name, "ShowManageHeading", true))
       { %>
            <h2><%= Html.Resource(Model.Name, "ManageHeading", "Manage " + Model.Name + "(s)") %></h2><br />
    <% } %>
        
    
    <% Html.RenderPartial(Model.ControlPath, Model); %>
    
    
    <%
       // 1. Displays the pager. 
       if(Model.Config.Get<bool>(Model.Name, "ShowPager", true))
       { %>
            <br /><br /><% Html.RenderPartial("Controls/Pager", Model); %><br /><br />
    <% } %> 
</asp:Content>